package com.ruoyi.flow.flow.workflow;

import com.google.common.collect.Lists;
import com.sun.el.ExpressionFactoryImpl;
import de.odysseus.el.util.SimpleContext;

import javax.el.ExpressionFactory;
import javax.el.ValueExpression;

/**
 * 顺序流表达式类
 * <br/>
 * 例如在条件顺序流中输入的条件表达式是{@code ${count>1000}}，此时传入的varName=count,varValue=2000,那么该表达式就成立。
 * Created by fenghuo on 2018/8/29.
 */
public class FlowCondition {
    /**
     * 表达式变量名
     */
    private String varName;
    /**
     * 表达式变量值
     */
    private String varValue;

    public FlowCondition(){}

    public String getVarName() {
        return varName;
    }

    public void setVarName(String varName) {
        this.varName = varName;
    }

    public String getVarValue() {
        return varValue;
    }

    public void setVarValue(String varValue) {
        this.varValue = varValue;
    }
}
